package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the smart_asignatura database table.
 * 
 */
@Entity
@Table(name="smart_asignatura")
@NamedQuery(name="SmartAsignatura.findAll", query="SELECT s FROM SmartAsignatura s")
public class SmartAsignatura implements Serializable{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scasignatura")
	private Integer smscasignatura;

	@Column(name="sm_coasignatura")
	private String smcoasignatura;

	@Column(name="sm_dsasignatura")
	private String smdsasignatura;
	
	@Column(name="sm_cousuario")
	private String smcousuario;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhingreso")
	private Date smfhingreso;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhmodificacion")
	private Date smfhmodificacion;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhretiro")
	private Date smfhretiro;

	//bi-directional many-to-one association to SmartArea
	@ManyToOne(optional = false, fetch = FetchType.LAZY) 
	@JoinColumn(name="sm_scarea", referencedColumnName="sm_scarea")
	private SmartArea smartArea;

	public Integer getSmscasignatura() {
		return smscasignatura;
	}

	public void setSmscasignatura(Integer smscasignatura) {
		this.smscasignatura = smscasignatura;
	}

	public String getSmcoasignatura() {
		return smcoasignatura;
	}

	public void setSmcoasignatura(String smcoasignatura) {
		this.smcoasignatura = smcoasignatura;
	}

	public String getSmdsasignatura() {
		return smdsasignatura;
	}

	public void setSmdsasignatura(String smdsasignatura) {
		this.smdsasignatura = smdsasignatura;
	}

	public String getSmcousuario() {
		return smcousuario;
	}

	public void setSmcousuario(String smcousuario) {
		this.smcousuario = smcousuario;
	}

	public Date getSmfhingreso() {
		return smfhingreso;
	}

	public void setSmfhingreso(Date smfhingreso) {
		this.smfhingreso = smfhingreso;
	}

	public Date getSmfhmodificacion() {
		return smfhmodificacion;
	}

	public void setSmfhmodificacion(Date smfhmodificacion) {
		this.smfhmodificacion = smfhmodificacion;
	}

	public Date getSmfhretiro() {
		return smfhretiro;
	}

	public void setSmfhretiro(Date smfhretiro) {
		this.smfhretiro = smfhretiro;
	}

	public SmartArea getSmartArea() {
		return smartArea;
	}

	public void setSmartArea(SmartArea smartArea) {
		this.smartArea = smartArea;
	}
}